﻿using System;
using Wireframe;

namespace SampleHttpServer
{
    internal class Program
    {
        private static void Main()
        {
            // Initialize Wireframe
            Wire.Initialize(AppDomain.CurrentDomain.GetAssemblies());

            // Initialize HTTP request handler and server
            HttpHandler httpHandler = new HttpHandler().Register();
            HttpServer httpServer = new HttpServer().Register();

            // Start the server
            httpServer.Run();

            Console.ReadLine();

            httpServer.Stop();
        }
    }
}